<?php
/**
 * Product Admin Tabs
 * The product admin page consists of all of the things that can be done to a product.
 * Extensions will have the ability to add functionality to the product admin page and 
 * the ability to add tabs on this page. 
 * 
 * @todo Extensions will need a way to hook into this page to insert template code into
 *       the menu and the body so that they can add tabs and forms to the product page.
 *       This way they can add admin menus such as "product reviews", "related products",
 *       etc. For now I'm just going to hard-code this stuff.
 *       
 */
?>
<div id="productmenu" class="admintabs">
	<ul>
		<li class="tab editproduct <?= ($this->tab == 'default') ? 'active' : '' ?>">
			<a href="<?= $this->routeUrl('admin_product_edit', array('tab' => null, 'product_id' => $this->product['product_id'])) ?>">Edit Product</a>
		</li>
		<li class="tab categories <?= ($this->tab == 'categories') ? 'active' : '' ?>">
			<a href="<?= $this->routeUrl('admin_product_edit', array('tab' => 'categories', 'product_id' => $this->product['product_id'])) ?>">Categories</a>
		</li> 
		<li class="tab images <?= ($this->tab == 'images') ? 'active' : '' ?>">
			<a href="<?= $this->routeUrl('admin_product_edit', array('tab' => 'images', 'product_id' => $this->product['product_id'])) ?>">Images</a>
		</li>
	</ul>
	<div class="clear"></div>
</div> <!-- /#productmenu -->

<div class="clear"></div>